package com.googlecode.sere.connectors.httpcomponents

import org.apache.http.{HttpResponse => HttpResponseImpl}
import org.apache.http.entity.ByteArrayEntity
import com.googlecode.sere.http.HttpResponse

class HttpCoreResponse(private val impl: HttpResponseImpl) extends HttpResponse {

  def setEntityContent(content: Array[Byte]) {
    impl.setEntity(new ByteArrayEntity(content))       
  }

	def setStatus(code: Int) = impl.setStatusCode(code)

  def setHeader(name: String, value: String) = impl.setHeader(name, value)
}
